@font-face {
    font-family: 'WuLinJiangHu';
    src: url('../fonts/WuLinJiangHu/WuLinJiangHu.ttf');
}

html, body {
    font-family: 'TanYueShouShu', sans-serif;
    font-weight: 400;
    color: var(--color-6);
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
#game-box {
    width: 80%;
    background-image: url('../images/chess_background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
}
#chess-board {
    height: 100vh;
    text-align: center;
    background-image: url('../images/chinese_chess/board.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#chat-box {
     width: 40%;
     background-color: #fff;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     height: 100vh;
}
.piece {
    position: absolute;
    background-size: cover;
    cursor: pointer;
    display: none;
}
.allowed-move {
    position: absolute;
    background-image: url('../images/chinese_chess/check.svg?3');
    background-size: cover;
    z-index: 2;
    cursor: pointer;
}
.un-move {
    position: absolute;
    background-image: url('../images/chinese_chess/check_green.svg');
    background-size: cover;
    z-index: 1;
}

#rr1, #rr2 {
    background-image: url('../images/chinese_chess/pieces/red_rook.svg');
}
#rn1, #rn2 {
    background-image: url('../images/chinese_chess/pieces/red_knight.svg');
}
#rb1, #rb2 {
    background-image: url('../images/chinese_chess/pieces/red_bishop.svg');
}
#rq1, #rq2 {
    background-image: url('../images/chinese_chess/pieces/red_advisor.svg');
}
#rk1 {
    background-image: url('../images/chinese_chess/pieces/red_king.svg');
}
#rc1, #rc2 {
    background-image: url('../images/chinese_chess/pieces/red_cannon.svg');
}
#rp1, #rp2, #rp3, #rp4, #rp5 {
    background-image: url('../images/chinese_chess/pieces/red_pawn.svg');
}

#br1, #br2 {
    background-image: url('../images/chinese_chess/pieces/black_rook.svg');
}
#bn1, #bn2 {
    background-image: url('../images/chinese_chess/pieces/black_knight.svg');
}
#bb1, #bb2 {
    background-image: url('../images/chinese_chess/pieces/black_bishop.svg');
}
#bq1, #bq2 {
    background-image: url('../images/chinese_chess/pieces/black_advisor.svg');
}
#bk1 {
    background-image: url('../images/chinese_chess/pieces/black_king.svg');
}
#bc1, #bc2 {
    background-image: url('../images/chinese_chess/pieces/black_cannon.svg');
}
#bp1, #bp2, #bp3, #bp4, #bp5 {
    background-image: url('../images/chinese_chess/pieces/black_pawn.svg');
}

#chat-box .header {
    height: 36px;
    background-color: #333;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}
#chat-box .header .user-name {
    color: #fff;
    padding: 10px;
}
.avatar {
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
}
.avatar img {
    width: 80%;
    height: 80%;
}
#chat-box .content {
    background-color: #EEEEEE;
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    user-select: text;
    -moz-user-select: text;
    -webkit-user-select: text;
    -ms-user-select: text;
}
#chat-box .content .chat-item{
    display: flex;
    flex-direction: row;
    padding: 10px;
}
#chat-box .content .chat-item .message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    padding: 8px;
    max-width: 75%;
    word-wrap: break-word;
    white-space: pre-wrap;
}
#chat-box .content .ai {
    justify-content: flex-start;
}
#chat-box .content .user {
    justify-content: flex-end;
}
#chat-box .content .system, #chat-box .content .selector {
    justify-content: center;
}
#chat-box .content .ai .message {
    background-color: #FFFFFF;
}
#chat-box .content .user .message {
    background-color: #5471FE;
    color: #fff;
}
#chat-box .content .system .message {
    color: gray;
    font-size: 14px;
    padding: 0;
    margin: 0;
}
#chat-box .content .message .think {
    padding: 5px;
    margin: 5px;
    font-size: 12px;
}
#chat-box .content .ai .think {
    border-left: 2px solid #E5E5E5;
    color: #878B87;
}
#chat-box .content .user .think {
    border-left: 2px solid #E5E5E5;
    color: #E5E5E5;
}
#chat-box .content .selector .button {
    background: #F6F6F6;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    cursor: pointer;
    text-align: center;
    width: 120px;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
#chat-box .footer {
    height: 36px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    line-height: 36px;
    border-top: 1px solid #FFFFFF;
}
#chat-box .footer div {
    width: 50%;
    height: 36px;
    text-align: center;
    cursor: pointer;

}
#chat-box .footer .undo {
    background-color: #FFFFFF;
    color: #333;
}
#chat-box .footer .restart {
    background-color: #BE4646;
    color: #fff;
}